//引入样式
require("../../assets/css/reset.css")
require('../../assets/css/normalize.css')
require('../../assets/fonts/iconfont.css')
require('../../assets/css/tabbar.less')
require('../../assets/css/navbar.less')
require('./sports_run.less');

//引入模块
const axios = require('../../utils/axios.js');
const dom = require('../../utils/dom.js')

document.addEventListener("DOMContentLoaded", function () {
    dom.navbar('movement_run');
    dom.tabbar('sports');

    // 点击出现弹出层
    dom.get('#goBtn').addEventListener('click', function () {
        dom.get('.mask').style.display = 'block';
        dom.get('.gobox').style.display = 'block';
        let num = 3;
        const time = setInterval(() => {
            num--;
            dom.get('.gobox').textContent = num;
            if (num === 0) {
                location.href = 'sports_running.html'
            }
        }, 1000);
    })
})